package _93DaiLi.impl;

import _93DaiLi.Image;

/**
 * @RealImage: 图片接口实现类 真实图片类
 * @author: ZBoHang
 * @time: 2021/9/15 16:01
 */
public class RealImage implements Image {
    private String fileName;

    public RealImage(String fileName) {
        this.fileName = fileName;
        loadFromDisk(fileName);
    }

    private void loadFromDisk(String fileName) {
        System.out.println("加载图片 " + fileName + " 中");
    }

    @Override
    public void display() {
        System.out.println("展示图片 " + fileName + " 中");
    }
}
